package com.example.h3x.androidmalware.View.Activities.Overlay;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import com.example.h3x.androidmalware.R;

/**
 * Created by h3x on 16.02.18.
 * in future, this method can create Fake Activity
 * for overlay attack, for example to creating fake
 * activity Instagram, Twitter, Facebook
 */

public class FakeActivity extends Activity {
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_fake);
        //button initialization
        final Button btnClose = findViewById(R.id.btnClose);
        View.OnClickListener CloseActivity = new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //closing fake activity
                finish();


            }
        };
        btnClose.setOnClickListener(CloseActivity); //listener of pressing CLOSE button
    }
}
